package com.iye.puretennis.activity;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import com.iye.puretennis.R;
import com.iye.puretennis.activity.test.IndicatorFragmentActivity;
import com.iye.puretennis.custom.test.FragmentOne;
import com.iye.puretennis.custom.test.FragmentThree;
import com.iye.puretennis.custom.test.FragmentTwo;
import com.iye.puretennis.fragment.MyAppointmentsFragment;
import com.iye.puretennis.fragment.MyFriendsFragment;
import com.iye.puretennis.fragment.MyGroupsFragment;
import com.iye.puretennis.fragment.ProfileFragment;

import java.util.List;

/**
 * Author: Chuanbao on 2014/11/19.
 */
public class MainTabsActivity extends TabsIndicatorActivity {
    public static final int FRAGMENT_ONE = 0;
    public static final int FRAGMENT_TWO = 1;
    public static final int FRAGMENT_THREE = 2;
    public static final int FRAGMENT_FOUR = 3;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int supplyTabs(List<TabInfo> tabs) {
        tabs.add(new TabsIndicatorActivity.TabInfo(FRAGMENT_ONE, getString(R.string.group),R.drawable.tab_group,
                MyGroupsFragment.class));
        tabs.add(new TabsIndicatorActivity.TabInfo(FRAGMENT_TWO, getString(R.string.friends),R.drawable.tab_friends,
                MyFriendsFragment.class));
        tabs.add(new TabsIndicatorActivity.TabInfo(FRAGMENT_THREE, getString(R.string.me),R.drawable.tab_appointments,
                MyAppointmentsFragment.class));
        tabs.add(new TabsIndicatorActivity.TabInfo(FRAGMENT_FOUR, getString(R.string.me),R.drawable.tab_me,
                ProfileFragment.class));

        return FRAGMENT_ONE;
    }
}